<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/8/2
  Time: 10:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>application作用域</title>
</head>
<body>
    <%
        List<String> books = new ArrayList<String>();
        books.add("《三国演义》");
        books.add("《水浒传》");
        books.add("《西游记》");
        books.add("《红楼梦》");
        application.setAttribute("books",books);
        // request.getRequestDispatcher("/listbooks.jsp").forward(request,response);
        response.sendRedirect("/listbooks.jsp");
    %>
</body>
</html>
